#include "Memory.h"

#include <cstdlib>
#include <cstring>

namespace Rz { namespace Memory {

void* Alloc(size_t n)
{
	return ::malloc(n);
}

void  Dealloc(void* ptr) 
{
	::free(ptr);
}	

void* Realloc(void* ptr, size_t newSize)
{
	return ::realloc(ptr, newSize);
}

void* Set(void* dst, s32 val, size_t count)
{
	return ::memset(dst, val, count);
}

void* Copy(void* dst, const void* src, size_t count)
{
	return ::memcpy(dst, src, count);
}

int Compare(const void* ptr1, const void* ptr2, size_t count)
{
	return ::memcmp(ptr1, ptr2, count);
}

} }
